<?php

namespace App\Http\Requests\Admin\WebHooks;

use App\Http\Requests\Request;

class UpdateRequest extends Request
{
    public function rules()
    {
        return [
            'id'          => 'required|integer|min:1|exists:web_hooks,id',
            'name'        => 'required|string|min:2|max:200',
            'description' => 'required|string|min:2|max:200',
            'password'    => 'required|string|min:2|max:100',
            'token'       => 'required|string|min:2|max:100',
            'allow_ips'   => 'required|string|min:2|max:100',
            'status'      => 'required|integer',
            'type'        => 'required|integer'
        ];
    }
}